package com.ycd.Service.impl;

import com.ycd.Entity.LanMuEntity;
import com.ycd.Service.LanMuEntityService;
import com.ycd.dao.Impl.LanMuEntityImpl;
import com.ycd.dao.LanMuEntityDao;

import java.util.List;
import java.util.Map;

public class LanMuEntityServiceImpl implements LanMuEntityService {

    private LanMuEntityDao lanMuEntityDao=new LanMuEntityImpl();
    @Override
    public void addLanMu(LanMuEntity lanmuentity) {
        lanMuEntityDao.addLanMu(lanmuentity);
    }

    @Override
    public void updateLanMu(LanMuEntity lanmuentity) {
        lanMuEntityDao.updateLanMu(lanmuentity);
    }

    @Override
    public void deLanMu(int id) {
        lanMuEntityDao.deLanMu(id);
    }

    @Override
    public List<LanMuEntity> queryAll() {
        return lanMuEntityDao.queryAll();
    }

    @Override
    public LanMuEntity getUserById(int id) {
        return lanMuEntityDao.getUserById(id);
    }

    @Override
    public boolean getAddReg(String acct) {
        return lanMuEntityDao.getAddReg(acct);
    }

    @Override
    public List<Map<String, String>> queryMu() {
        return lanMuEntityDao.queryMu();
    }
}
